package com.qf.service.impl;/*
 *徐韬
 *2021/10/18
 *16:01
 */

import com.qf.service.GradeService;
import org.springframework.stereotype.Service;

import java.net.SocketTimeoutException;
@Service
public class GradeServiceimpl implements GradeService {
    @Override
    public void add() {
        System.out.println("添加一个方法");
    }

    @Override
    public Integer modfiy() {
        System.out.println("修改一个方法");
        return 100;
    }

    @Override
    public void remove() {
        System.out.println("删除一个方法");
        throw new RuntimeException("删除时出现异常");

    }

    @Override
    public void show() {
        System.out.println("查询单个方法");

    }

    @Override
    public void showAll() {
        System.out.println("查询所有方法");

    }
}
